/**
 * small-spring
 *
 * @author yuanchen
 * @date 2021-06-29 14:54
 */
package cn.bugstack.springframework.beans.factory.config;

/**
 *
 * @author yuanchen
 * @date 2021-06-29 14:54
 */
public class BeanDefinition {

    private Class beanClass;

    //默认单例
    private boolean singleton=true;

    private PropertyValues propertyValues;

    public BeanDefinition(Class beanClass) {
        this.beanClass = beanClass;
    }

    public boolean isSingleton() {
        return singleton;
    }

    public BeanDefinition setSingleton(boolean singleton) {
        this.singleton = singleton;
        return this;
    }

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public PropertyValues getPropertyValues() {
        return propertyValues;
    }

    public void setPropertyValues(PropertyValues propertyValues) {
        this.propertyValues = propertyValues;
    }
}
